/**
 * 评测服务器状态
 */
export enum JudgeServerStatus {
  NORMAL = 'normal',
  ERROR = 'error',
  WARNING = 'warning'
}

/**
 * 评测服务器信息
 */
export interface JudgeServer {
  id: number;
  hostname: string;
  ip: string;
  status: string;
  last_heartbeat: string;
  is_disabled: boolean;
  judger_version: string;
  cpu_core: number;
  memory_usage: number;
  cpu_usage: number;
  create_time: string;
  task_number: number;
  service_url: string;
}

/**
 * 评测服务器列表响应
 */
export interface JudgeServerResponse {
  token: string;
  servers: JudgeServer[];
}

/**
 * 更新评测服务器请求
 */
export interface UpdateJudgeServerRequest {
  is_disabled: boolean;
} 